import http from "../utils/http";
export default {
    recommendList(couponId) {
        return http.posts("/member/coupon/add/"+couponId)
    },
    list(useStatus,pageNum,pageSize) {
        return http.get("/member/coupon/list" , { useStatus,pageNum,pageSize})
    },
	lists(pageNum,pageSize) {
	    return http.get("/member/coupon/list",{pageNum,pageSize})
	},
    listHistory(useStatus) {
        return http.get("/member/coupon/listHistory" , { useStatus })
    },
    listCart(type) {
        return http.get("/member/coupon/list/cart", type)
    },
    listByProduct(productId) {
        return http.get("/member/coupon/listByProduct/"+productId)
    }
}